import React, { Component } from 'react'
import store from '../store'
import {addnum} from "../action/numaction"

export default class About extends Component {
  render() {
    return (
      <div>
        <div>about 全局参数Number：{store.getState().dataReducer.num}</div>
        <div>
            <button onClick={
                ()=>{store.dispatch(addnum(5));this.forceUpdate()}
            }>+</button>
        </div>
      </div>
    )
  }
}
